package com.zx.mes.hyl.controller;

import com.zx.mes.hyl.entity.SysUser;
import com.zx.mes.hyl.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * SysUser Controller
 *
 * @author huayunlong
 * @date 2018-8-28
 */
@RestController
@RequestMapping("/sysUser")
public class SysUserController {

    private final SysUserService sysUserService;

    @Autowired
    public SysUserController(SysUserService sysUserService) {
        this.sysUserService = sysUserService;
    }

    @GetMapping("/getOne/{id}")
    public SysUser getOne(@PathVariable String id) {
        return sysUserService.getOne(id);
    }
}
